package com.xch.sboot.web.api.user;

import com.xch.sboot.common.response.Result;
import com.xch.sboot.service.user.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xch
 * 2022/7/21 22:25
 */
@Api(tags = "用户管理")
@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;

    @ApiOperation("demo")
    @GetMapping("/demo")
    public Result<String> demo(@RequestParam(name = "ceshi") String ceshi) {
        userService.demo();
        return Result.newR("ceshi");
    }

}
